home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / Darts(Scram).dxr / Generic GFX_7_game end statistics.ls < prev    next >
Encoding:
Text File  |  2002-01-25  |  702 b   |  27 lines

  1. global gCurrentScore
  2.  
  3. on beginSprite me
  4.   xtc = gCurrentScore
  5.   member("total score").text = "Total Score:" && string(xtc) && "pts"
  6.   if (xtc >= 0) and (xtc <= 500) then
  7.     puppetSound(5, "lose")
  8.     member("job done").text = "Not Bad!"
  9.     puppetSound(5, "lose")
  10.   else
  11.     if (xtc >= 501) and (xtc <= 1000) then
  12.       puppetSound(5, "win")
  13.       member("job done").text = "Pretty Good!"
  14.     else
  15.       if (xtc >= 1001) and (xtc <= 1300) then
  16.         puppetSound(5, "win")
  17.         member("job done").text = "Great Job!"
  18.       else
  19.         if xtc >= 1301 then
  20.           puppetSound(5, "win")
  21.           member("job done").text = "Excellent Showing!"
  22.         end if
  23.       end if
  24.     end if
  25.   end if
  26. end
  27.